package org.dromara.school.domain.bo;

import org.dromara.school.domain.Discipline;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 学科管理业务对象 school_discipline
 *
 * @author Gjb
 * @date 2025-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Discipline.class, reverseConvertGenerate = false)
public class DisciplineBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long disciplineId;

    /**
     * 学科名称
     */
    @NotBlank(message = "学科名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subjectName;

    /**
     * 所属校区
     */
    @NotNull(message = "所属校区不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long schoolCampusId;

    @NotNull(message = "适用年级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String[] classYear;

    private List<String> gradesYears;

    /**
     * 备注
     */
    private String remark;


}
